package com.colin.base.singleton;

/**
 * Created by Colin on 2020/3/21 14:34
 * email: colinzhaodong@gmail.com
 * desc: 饿汉式（静态代码块）（可用）
 *
 * @author zhaod
 */
public class Singleton2 {
	private final static Singleton2 INSTANCE;
	static {
		INSTANCE = new Singleton2();
	}
	private Singleton2(){

	}
	public static Singleton2 getInstance(){
		return INSTANCE;
	}
}
